//
//  KSColleCell.swift
//  Slaughter
//
//  Created by Ken on 2019/5/28.
//  Copyright © 2019 zwb. All rights reserved.
//

import UIKit
 class KSColleCell: UICollectionViewCell {
 
    var btnAction:((Int,Int)->())?
    var btn = SeleButton()
    var atSession:Int?
    var atRow:Int?
 
    override init(frame: CGRect) {
        super.init(frame: frame)
        btn = SeleButton.init(frame: self.bounds)
        btn.titleLabel?.font = UIFont.systemFont(ofSize: 12)
        btn.addTouchUpInSideAction{ [weak self] _ in
            if let ac = self!.btnAction {
                ac(self!.atSession!,self!.atRow!)
            }
        }
        self.addSubview(btn)
        
    }
    override func layoutSubviews() {
       
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
